package ua.com.alus.resvac.crm.util;

import ua.com.alus.resvac.crm.domen.prototype.CitizenType;

import java.util.ArrayList;
import java.util.List;

/**
 * DataUtils
 */
public class DataUtils {
    private List<Integer> years;

    public List<Integer> getYears() {
        if (years == null) {
            years = new ArrayList<Integer>();
            for (int i = 1935; i < 2011; i++) {
                years.add(i);
            }
        }

        return years;
    }

    private List<String> countries;

    public List<String> getCountries() {
        if (countries == null) {
            countries = new ArrayList<String>();
            for (CitizenType сitizenType : CitizenType.values()) {
                countries.add(сitizenType.name());
            }
        }
        return countries;
    }
}
